package com.glorystone.ins.dao;

import com.glorystone.ins.common.common.PageVo;
import com.glorystone.ins.common.common.Pageable;
import com.glorystone.ins.domain.AuditTask;
import com.glorystone.ins.interceptor.PageList;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * Created by wangwei on 2018/3/12.
 */
public interface AuditTaskMapper {

    AuditTask findOne(AuditTask task);

    void save(AuditTask task);

    void update(AuditTask auditTask);

    PageList<AuditTask> findList(@Param("vo") PageVo vo, Pageable pageable);

    PageList<AuditTask> findList(@Param("vo") PageVo vo, Pageable pageable, @Param("permissions") Set<String> permissions);
}
